package com.muyu.day2zy.controller;

import com.muyu.day2zy.pojo.People;
import com.muyu.day2zy.pojo.vo.PeopleVo;
import com.muyu.day2zy.service.PeopleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName PeopleController
 * @Description 描述
 * @Author ShiYu.Cui
 * @Date 2024/3/23 7:58
 */
@RestController
public class PeopleController {
    @Autowired
    private PeopleService peopleService;

    @PostMapping("/list")
    public List<People> list(@RequestBody PeopleVo peopleVo){
        return peopleService.list(peopleVo);
    }
}
